package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Goods;
import org.apache.ibatis.annotations.Param;


import java.util.List;


public interface InventoryDao {


   


    List<Goods> getGoodList(@Param("codeOrName") String codeOrName, @Param("goodsTypeId")Integer goodsTypeId);

    Integer selectInventoryCount(@Param("codeOrName") String codeOrName, @Param("goodsTypeId")Integer goodsTypeId);

    //Integer selectInventoryCountByNameOrCode(@Param("nameOrCode")String nameOrCode);

    List<Goods> getInventoryGoodList(@Param("nameOrCode")String nameOrCode);

    void saveStock(@Param("goodsId") Integer goodsId, @Param("inventoryQuantity") Integer inventoryQuantity, @Param("purchasingPrice") double purchasingPrice);

    Goods selectInventory(@Param("goodsId") Integer goodsId);

    void deleteStock(@Param("goodsId") Integer goodsId);
}
